package com.my.webhr.pro.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.webhr.pro.mapper.HolidayMapper;
import com.my.webhr.pro.pojo.Holiday;
import com.my.webhr.pro.service.HolidayService;
@Service
public class HolidayServiceImpl implements HolidayService {
	@Autowired
	private HolidayMapper holidayMapper;
	@Override
	public int deleteOne(int hId) {
		return holidayMapper.deleteByPrimaryKey(hId);
	}

	@Override
	public int modifyOne(Holiday holiday) {
		return holidayMapper.updateByPrimaryKeySelective(holiday);
	}

	@Override
	public int updateOne(Holiday holiday) {
		return holidayMapper.insert(holiday);
	}

}
